package com.ktjy.utils;

import java.time.LocalDateTime;

public class DateUtil {
    public static LocalDateTime getDate(int time, String type, LocalDateTime now){
        if(Constants.HOUR.equals(type)){
            now.plusHours(time);
        }else if(Constants.DAY.equals(type)){
            now.plusDays(time);
        }else if(Constants.WEEK.equals(type)){
            now.plusWeeks(time);
        }
        return now;
    }
}
